package com.zdlyh.service;

import com.zdlyh.domain.ResponseResult;
import com.zdlyh.domain.dto.LinkDto;
import com.zdlyh.domain.entity.Link;
import com.baomidou.mybatisplus.extension.service.IService;

public interface LinkService extends IService<Link> {
    // 查询所有友链数据（前台）
    ResponseResult getAllLink();

    ResponseResult getLinkList(Integer pageNum, Integer pageSize, LinkDto linkDto);

    ResponseResult addLink(LinkDto linkDto);

    ResponseResult getLinkById(Long id);

    ResponseResult updateLink(LinkDto linkDto);

    ResponseResult deleteLinkById(Long id);
}
